


<!doctype html>
<html lang="zh" class="no-js">
  <head>
    
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width,initial-scale=1">
      
        <meta name="description" content="My Docs">
      
      
        <link rel="canonical" href="https://zuoguocai.gitee.io/faq/core/">
      
      
        <meta name="author" content="zuoguocai#126.com">
      
      <link rel="shortcut icon" href="../../img/facio.ico">
      <meta name="generator" content="mkdocs-1.1.2, mkdocs-material-5.5.12">
    
    
      
        <title>Core 常见问题 - 国才大叔的小屋</title>
      
    
    
      <link rel="stylesheet" href="../../assets/stylesheets/main.4dd2dd8d.min.css">
      
        <link rel="stylesheet" href="../../assets/stylesheets/palette.6a5ad368.min.css">
      
      
        
        
        <meta name="theme-color" content="#4cae4f">
      
    
    
    
      
        <link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
        <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,400i,700%7CRoboto+Mono&display=fallback">
        <style>body,input{font-family:"Roboto",-apple-system,BlinkMacSystemFont,Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"Roboto Mono",SFMono-Regular,Consolas,Menlo,monospace}</style>
      
    
    
    
      <link rel="stylesheet" href="../../css/extra.css">
    
    
      
        
<script>window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)},ga.l=+new Date,ga("create","UA-147297392-3","mydoc"),ga("set","anonymizeIp",!0),ga("send","pageview"),document.addEventListener("DOMContentLoaded",function(){document.forms.search&&document.forms.search.query.addEventListener("blur",function(){if(this.value){var e=document.location.pathname;ga("send","pageview",e+"?q="+this.value)}})}),document.addEventListener("DOMContentSwitch",function(){ga("send","pageview",document.location.pathname)})</script>
<script async src="https://www.google-analytics.com/analytics.js"></script>
      
    
    
  </head>
  
  
    
    
    
    <body dir="ltr" data-md-color-scheme="" data-md-color-primary="green" data-md-color-accent="red">
  
    
    <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
    <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
    <label class="md-overlay" for="__drawer"></label>
    <div data-md-component="skip">
      
        
        <a href="#core" class="md-skip">
          跳转至
        </a>
      
    </div>
    <div data-md-component="announce">
      
    </div>
    
      <header class="md-header" data-md-component="header">
  <nav class="md-header-nav md-grid" aria-label="Header">
    <a href="https://zuoguocai.gitee.io/" title="国才大叔的小屋" class="md-header-nav__button md-logo" aria-label="国才大叔的小屋">
      
  <img src="../../img/logo.png" alt="logo">

    </a>
    <label class="md-header-nav__button md-icon" for="__drawer">
      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
    </label>
    <div class="md-header-nav__title" data-md-component="header-title">
      
        <div class="md-header-nav__ellipsis">
          <span class="md-header-nav__topic md-ellipsis">
            国才大叔的小屋
          </span>
          <span class="md-header-nav__topic md-ellipsis">
            
              Core 常见问题
            
          </span>
        </div>
      
    </div>
    
      <label class="md-header-nav__button md-icon" for="__search">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
      </label>
      
<div class="md-search" data-md-component="search" role="dialog">
  <label class="md-search__overlay" for="__search"></label>
  <div class="md-search__inner" role="search">
    <form class="md-search__form" name="search">
      <input type="text" class="md-search__input" name="query" aria-label="搜索" placeholder="搜索" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" data-md-state="active">
      <label class="md-search__icon md-icon" for="__search">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
      </label>
      <button type="reset" class="md-search__icon md-icon" aria-label="Clear" data-md-component="search-reset" tabindex="-1">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
      </button>
    </form>
    <div class="md-search__output">
      <div class="md-search__scrollwrap" data-md-scrollfix>
        <div class="md-search-result" data-md-component="search-result">
          <div class="md-search-result__meta">
            Initializing search
          </div>
          <ol class="md-search-result__list"></ol>
        </div>
      </div>
    </div>
  </div>
</div>
    
    
      <div class="md-header-nav__source">
        
<a href="https://github.com/ZuoGuocai/getSSLInfo" title="前往 GitHub 仓库" class="md-source">
  <div class="md-source__icon md-icon">
    
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M439.55 236.05L244 40.45a28.87 28.87 0 00-40.81 0l-40.66 40.63 51.52 51.52c27.06-9.14 52.68 16.77 43.39 43.68l49.66 49.66c34.23-11.8 61.18 31 35.47 56.69-26.49 26.49-70.21-2.87-56-37.34L240.22 199v121.85c25.3 12.54 22.26 41.85 9.08 55a34.34 34.34 0 01-48.55 0c-17.57-17.6-11.07-46.91 11.25-56v-123c-20.8-8.51-24.6-30.74-18.64-45L142.57 101 8.45 235.14a28.86 28.86 0 000 40.81l195.61 195.6a28.86 28.86 0 0040.8 0l194.69-194.69a28.86 28.86 0 000-40.81z"/></svg>
  </div>
  <div class="md-source__repository">
    GitHub Star
  </div>
</a>
      </div>
    
  </nav>
</header>
    
    <div class="md-container" data-md-component="container">
      
        
      
      
        
      
      <main class="md-main" data-md-component="main">
        <div class="md-main__inner md-grid">
          
            
              <div class="md-sidebar md-sidebar--primary" data-md-component="navigation">
                <div class="md-sidebar__scrollwrap">
                  <div class="md-sidebar__inner">
                    <nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
  <label class="md-nav__title" for="__drawer">
    <a href="https://zuoguocai.gitee.io/" title="国才大叔的小屋" class="md-nav__button md-logo" aria-label="国才大叔的小屋">
      
  <img src="../../img/logo.png" alt="logo">

    </a>
    国才大叔的小屋
  </label>
  
    <div class="md-nav__source">
      
<a href="https://github.com/ZuoGuocai/getSSLInfo" title="前往 GitHub 仓库" class="md-source">
  <div class="md-source__icon md-icon">
    
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M439.55 236.05L244 40.45a28.87 28.87 0 00-40.81 0l-40.66 40.63 51.52 51.52c27.06-9.14 52.68 16.77 43.39 43.68l49.66 49.66c34.23-11.8 61.18 31 35.47 56.69-26.49 26.49-70.21-2.87-56-37.34L240.22 199v121.85c25.3 12.54 22.26 41.85 9.08 55a34.34 34.34 0 01-48.55 0c-17.57-17.6-11.07-46.91 11.25-56v-123c-20.8-8.51-24.6-30.74-18.64-45L142.57 101 8.45 235.14a28.86 28.86 0 000 40.81l195.61 195.6a28.86 28.86 0 0040.8 0l194.69-194.69a28.86 28.86 0 000-40.81z"/></svg>
  </div>
  <div class="md-source__repository">
    GitHub Star
  </div>
</a>
    </div>
  
  <ul class="md-nav__list" data-md-scrollfix>
    
      
      
      


  <li class="md-nav__item">
    <a href="../.." title="总体介绍" class="md-nav__link">
      总体介绍
    </a>
  </li>

    
      
      
      


  <li class="md-nav__item md-nav__item--nested">
    
      <input class="md-nav__toggle md-toggle" data-md-toggle="nav-2" type="checkbox" id="nav-2">
    
    <label class="md-nav__link" for="nav-2">
      安装配置
      <span class="md-nav__icon md-icon"></span>
    </label>
    <nav class="md-nav" aria-label="安装配置" data-md-level="1">
      <label class="md-nav__title" for="nav-2">
        <span class="md-nav__icon md-icon"></span>
        安装配置
      </label>
      <ul class="md-nav__list" data-md-scrollfix>
        
        
          
          
          


  <li class="md-nav__item">
    <a href="../../install/step_by_step/" title="安装文档" class="md-nav__link">
      安装文档
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../install/setup_by_fast/" title="极速部署" class="md-nav__link">
      极速部署
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../install/docker_install/" title="容器部署" class="md-nav__link">
      容器部署
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item md-nav__item--nested">
    
      <input class="md-nav__toggle md-toggle" data-md-toggle="nav-2-4" type="checkbox" id="nav-2-4">
    
    <label class="md-nav__link" for="nav-2-4">
      分布式部署
      <span class="md-nav__icon md-icon"></span>
    </label>
    <nav class="md-nav" aria-label="分布式部署" data-md-level="2">
      <label class="md-nav__title" for="nav-2-4">
        <span class="md-nav__icon md-icon"></span>
        分布式部署
      </label>
      <ul class="md-nav__list" data-md-scrollfix>
        
        
          
          
          


  <li class="md-nav__item">
    <a href="../../install/setup_by_prod/" title="环境说明" class="md-nav__link">
      环境说明
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../install/prod/distributed_01/" title="NFS 部署" class="md-nav__link">
      NFS 部署
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../install/prod/distributed_02/" title="Tengine 部署" class="md-nav__link">
      Tengine 部署
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../install/prod/distributed_03/" title="Mariadb 部署" class="md-nav__link">
      Mariadb 部署
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../install/prod/distributed_04/" title="Redis 部署" class="md-nav__link">
      Redis 部署
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../install/prod/distributed_05/" title="Core 部署" class="md-nav__link">
      Core 部署
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../install/prod/distributed_06/" title="Koko 部署" class="md-nav__link">
      Koko 部署
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../install/prod/distributed_07/" title="Guacamole 部署" class="md-nav__link">
      Guacamole 部署
    </a>
  </li>

        
      </ul>
    </nav>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../install/install_security/" title="安全建议" class="md-nav__link">
      安全建议
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../install/uninstall/" title="卸载文档" class="md-nav__link">
      卸载文档
    </a>
  </li>

        
      </ul>
    </nav>
  </li>

    
      
      
      


  <li class="md-nav__item md-nav__item--nested">
    
      <input class="md-nav__toggle md-toggle" data-md-toggle="nav-3" type="checkbox" id="nav-3">
    
    <label class="md-nav__link" for="nav-3">
      管理文档
      <span class="md-nav__icon md-icon"></span>
    </label>
    <nav class="md-nav" aria-label="管理文档" data-md-level="1">
      <label class="md-nav__title" for="nav-3">
        <span class="md-nav__icon md-icon"></span>
        管理文档
      </label>
      <ul class="md-nav__list" data-md-scrollfix>
        
        
          
          
          


  <li class="md-nav__item">
    <a href="../../admin-guide/quick_start/" title="快速入门" class="md-nav__link">
      快速入门
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item md-nav__item--nested">
    
      <input class="md-nav__toggle md-toggle" data-md-toggle="nav-3-2" type="checkbox" id="nav-3-2">
    
    <label class="md-nav__link" for="nav-3-2">
      更新升级
      <span class="md-nav__icon md-icon"></span>
    </label>
    <nav class="md-nav" aria-label="更新升级" data-md-level="2">
      <label class="md-nav__title" for="nav-3-2">
        <span class="md-nav__icon md-icon"></span>
        更新升级
      </label>
      <ul class="md-nav__list" data-md-scrollfix>
        
        
          
          
          


  <li class="md-nav__item">
    <a href="../../admin-guide/upgrade/1.0.0-1.4.3/" title="1.0.0-1.4.3 升级到 1.4.4" class="md-nav__link">
      1.0.0-1.4.3 升级到 1.4.4
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../admin-guide/upgrade/1.4.4/" title="1.4.4 升级到 1.4.5" class="md-nav__link">
      1.4.4 升级到 1.4.5
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../admin-guide/upgrade/1.4.5-1.4.10/" title="1.4.5-1.4.10 升级到 最新" class="md-nav__link">
      1.4.5-1.4.10 升级到 最新
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../admin-guide/upgrade/1.5.0/" title="1.5.0 及之后版本升级到 最新" class="md-nav__link">
      1.5.0 及之后版本升级到 最新
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../admin-guide/upgrade/other/" title="其他部署方式升级说明" class="md-nav__link">
      其他部署方式升级说明
    </a>
  </li>

        
      </ul>
    </nav>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../admin-guide/migration/" title="迁移文档" class="md-nav__link">
      迁移文档
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item md-nav__item--nested">
    
      <input class="md-nav__toggle md-toggle" data-md-toggle="nav-3-4" type="checkbox" id="nav-3-4">
    
    <label class="md-nav__link" for="nav-3-4">
      资产要求
      <span class="md-nav__icon md-icon"></span>
    </label>
    <nav class="md-nav" aria-label="资产要求" data-md-level="2">
      <label class="md-nav__title" for="nav-3-4">
        <span class="md-nav__icon md-icon"></span>
        资产要求
      </label>
      <ul class="md-nav__list" data-md-scrollfix>
        
        
          
          
          


  <li class="md-nav__item">
    <a href="../../admin-guide/assets/telnet/" title="Tetnet" class="md-nav__link">
      Tetnet
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../admin-guide/assets/linux_ssh/" title="Linux SSH" class="md-nav__link">
      Linux SSH
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../admin-guide/assets/linux_vnc/" title="Linux VNC" class="md-nav__link">
      Linux VNC
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../admin-guide/assets/windows_ssh/" title="Windows SSH" class="md-nav__link">
      Windows SSH
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../admin-guide/assets/windows_vnc/" title="Windows VNC" class="md-nav__link">
      Windows VNC
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../admin-guide/assets/windows_rdp/" title="Windows RDP" class="md-nav__link">
      Windows RDP
    </a>
  </li>

        
      </ul>
    </nav>
  </li>

        
          
          
          


  <li class="md-nav__item md-nav__item--nested">
    
      <input class="md-nav__toggle md-toggle" data-md-toggle="nav-3-5" type="checkbox" id="nav-3-5">
    
    <label class="md-nav__link" for="nav-3-5">
      身份认证
      <span class="md-nav__icon md-icon"></span>
    </label>
    <nav class="md-nav" aria-label="身份认证" data-md-level="2">
      <label class="md-nav__title" for="nav-3-5">
        <span class="md-nav__icon md-icon"></span>
        身份认证
      </label>
      <ul class="md-nav__list" data-md-scrollfix>
        
        
          
          
          


  <li class="md-nav__item">
    <a href="../../admin-guide/authentication/cas/" title="CAS 认证" class="md-nav__link">
      CAS 认证
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../admin-guide/authentication/mfa/" title="MFA 认证" class="md-nav__link">
      MFA 认证
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../admin-guide/authentication/ldap/" title="LDAP 认证" class="md-nav__link">
      LDAP 认证
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../admin-guide/authentication/openid/" title="OpenID 认证" class="md-nav__link">
      OpenID 认证
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../admin-guide/authentication/radius/" title="Radius 认证" class="md-nav__link">
      Radius 认证
    </a>
  </li>

        
      </ul>
    </nav>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../admin-guide/proxy/" title="反向代理" class="md-nav__link">
      反向代理
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../admin-guide/env/" title="参数说明" class="md-nav__link">
      参数说明
    </a>
  </li>

        
      </ul>
    </nav>
  </li>

    
      
      
      


  <li class="md-nav__item md-nav__item--nested">
    
      <input class="md-nav__toggle md-toggle" data-md-toggle="nav-4" type="checkbox" id="nav-4">
    
    <label class="md-nav__link" for="nav-4">
      开发文档
      <span class="md-nav__icon md-icon"></span>
    </label>
    <nav class="md-nav" aria-label="开发文档" data-md-level="1">
      <label class="md-nav__title" for="nav-4">
        <span class="md-nav__icon md-icon"></span>
        开发文档
      </label>
      <ul class="md-nav__list" data-md-scrollfix>
        
        
          
          
          


  <li class="md-nav__item">
    <a href="../../dev/rest_api/" title="API文档" class="md-nav__link">
      API文档
    </a>
  </li>

        
      </ul>
    </nav>
  </li>

    
      
      
      


  <li class="md-nav__item md-nav__item--nested">
    
      <input class="md-nav__toggle md-toggle" data-md-toggle="nav-5" type="checkbox" id="nav-5">
    
    <label class="md-nav__link" for="nav-5">
      用户文档
      <span class="md-nav__icon md-icon"></span>
    </label>
    <nav class="md-nav" aria-label="用户文档" data-md-level="1">
      <label class="md-nav__title" for="nav-5">
        <span class="md-nav__icon md-icon"></span>
        用户文档
      </label>
      <ul class="md-nav__list" data-md-scrollfix>
        
        
          
          
          


  <li class="md-nav__item">
    <a href="../../user-guide/assets/user-asset/" title="我的资产" class="md-nav__link">
      我的资产
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item md-nav__item--nested">
    
      <input class="md-nav__toggle md-toggle" data-md-toggle="nav-5-2" type="checkbox" id="nav-5-2">
    
    <label class="md-nav__link" for="nav-5-2">
      我的应用
      <span class="md-nav__icon md-icon"></span>
    </label>
    <nav class="md-nav" aria-label="我的应用" data-md-level="2">
      <label class="md-nav__title" for="nav-5-2">
        <span class="md-nav__icon md-icon"></span>
        我的应用
      </label>
      <ul class="md-nav__list" data-md-scrollfix>
        
        
          
          
          


  <li class="md-nav__item">
    <a href="../../user-guide/applications/user-database-app/" title="数据库应用" class="md-nav__link">
      数据库应用
    </a>
  </li>

        
      </ul>
    </nav>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../user-guide/ops/command-executions/create/" title="命令执行" class="md-nav__link">
      命令执行
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../user-guide/users/profile/" title="个人信息" class="md-nav__link">
      个人信息
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../user-guide/terminal/web-terminal/" title="Web终端" class="md-nav__link">
      Web终端
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../user-guide/terminal/web-sftp/" title="文件管理" class="md-nav__link">
      文件管理
    </a>
  </li>

        
      </ul>
    </nav>
  </li>

    
      
      
      

  


  <li class="md-nav__item md-nav__item--active md-nav__item--nested">
    
      <input class="md-nav__toggle md-toggle" data-md-toggle="nav-6" type="checkbox" id="nav-6" checked>
    
    <label class="md-nav__link" for="nav-6">
      帮助文档
      <span class="md-nav__icon md-icon"></span>
    </label>
    <nav class="md-nav" aria-label="帮助文档" data-md-level="1">
      <label class="md-nav__title" for="nav-6">
        <span class="md-nav__icon md-icon"></span>
        帮助文档
      </label>
      <ul class="md-nav__list" data-md-scrollfix>
        
        
          
          
          


  <li class="md-nav__item">
    <a href="../other/" title="其他问题" class="md-nav__link">
      其他问题
    </a>
  </li>

        
          
          
          

  


  <li class="md-nav__item md-nav__item--active">
    
    <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
    
      
    
    
      <label class="md-nav__link md-nav__link--active" for="__toc">
        Core 常见问题
        <span class="md-nav__icon md-icon"></span>
      </label>
    
    <a href="./" title="Core 常见问题" class="md-nav__link md-nav__link--active">
      Core 常见问题
    </a>
    
      
<nav class="md-nav md-nav--secondary" aria-label="目录">
  
  
    
  
  
    <label class="md-nav__title" for="__toc">
      <span class="md-nav__icon md-icon"></span>
      目录
    </label>
    <ul class="md-nav__list" data-md-scrollfix>
      
        <li class="md-nav__item">
  <a href="#1-core" class="md-nav__link">
    1. core 启动异常
  </a>
  
</li>
      
        <li class="md-nav__item">
  <a href="#2-web" class="md-nav__link">
    2. Web 登录页面异常
  </a>
  
</li>
      
        <li class="md-nav__item">
  <a href="#3-web" class="md-nav__link">
    3. Web 登录失败
  </a>
  
</li>
      
        <li class="md-nav__item">
  <a href="#4" class="md-nav__link">
    4. 管理用户 和 系统用户
  </a>
  
</li>
      
        <li class="md-nav__item">
  <a href="#5-core" class="md-nav__link">
    5. 更新 Core 报错
  </a>
  
</li>
      
    </ul>
  
</nav>
    
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../luna/" title="Luna 常见问题" class="md-nav__link">
      Luna 常见问题
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../koko/" title="koko 常见问题" class="md-nav__link">
      koko 常见问题
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../guacamole/" title="Guacamole 问题" class="md-nav__link">
      Guacamole 问题
    </a>
  </li>

        
      </ul>
    </nav>
  </li>

    
      
      
      


  <li class="md-nav__item md-nav__item--nested">
    
      <input class="md-nav__toggle md-toggle" data-md-toggle="nav-7" type="checkbox" id="nav-7">
    
    <label class="md-nav__link" for="nav-7">
      关于
      <span class="md-nav__icon md-icon"></span>
    </label>
    <nav class="md-nav" aria-label="关于" data-md-level="1">
      <label class="md-nav__title" for="nav-7">
        <span class="md-nav__icon md-icon"></span>
        关于
      </label>
      <ul class="md-nav__list" data-md-scrollfix>
        
        
          
          
          


  <li class="md-nav__item">
    <a href="../../about/contributor/" title="贡献列表" class="md-nav__link">
      贡献列表
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../about/change_log/" title="更新说明" class="md-nav__link">
      更新说明
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../about/contact/" title="联系方式" class="md-nav__link">
      联系方式
    </a>
  </li>

        
          
          
          


  <li class="md-nav__item">
    <a href="../../about/commercial/" title="商业产品" class="md-nav__link">
      商业产品
    </a>
  </li>

        
      </ul>
    </nav>
  </li>

    
      
      
      


  <li class="md-nav__item">
    <a href="../../enterprise/" title="企业版试用" class="md-nav__link">
      企业版试用
    </a>
  </li>

    
  </ul>
</nav>
                  </div>
                </div>
              </div>
            
            
              <div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
                <div class="md-sidebar__scrollwrap">
                  <div class="md-sidebar__inner">
                    
<nav class="md-nav md-nav--secondary" aria-label="目录">
  
  
    
  
  
    <label class="md-nav__title" for="__toc">
      <span class="md-nav__icon md-icon"></span>
      目录
    </label>
    <ul class="md-nav__list" data-md-scrollfix>
      
        <li class="md-nav__item">
  <a href="#1-core" class="md-nav__link">
    1. core 启动异常
  </a>
  
</li>
      
        <li class="md-nav__item">
  <a href="#2-web" class="md-nav__link">
    2. Web 登录页面异常
  </a>
  
</li>
      
        <li class="md-nav__item">
  <a href="#3-web" class="md-nav__link">
    3. Web 登录失败
  </a>
  
</li>
      
        <li class="md-nav__item">
  <a href="#4" class="md-nav__link">
    4. 管理用户 和 系统用户
  </a>
  
</li>
      
        <li class="md-nav__item">
  <a href="#5-core" class="md-nav__link">
    5. 更新 Core 报错
  </a>
  
</li>
      
    </ul>
  
</nav>
                  </div>
                </div>
              </div>
            
          
          <div class="md-content">
            <article class="md-content__inner md-typeset">
              
                
                
                  
                
                
                <h1 id="core">Core 常见问题<a class="headerlink" href="#core" title="Permanent link">&para;</a></h1>
<div class="admonition info">
<p class="admonition-title">常见问题记录</p>
</div>
<h3 id="1-core">1. core 启动异常<a class="headerlink" href="#1-core" title="Permanent link">&para;</a></h3>
<div class="admonition question">
<p class="admonition-title">ModuleNotFoundError: No module named 'daemon'</p>
<div class="highlight"><pre><span></span><code><span class="nb">source</span> /opt/py3/bin/activate
pip install -r requirements/requirements.txt
</code></pre></div>

</div>
<div class="admonition question">
<p class="admonition-title">redis.exceptions.ConnectionError: Error 111 connecting to 127.0.0.1:6379. Connection refused</p>
<p>检查 config.yml 的 redis 设置</p>
</div>
<div class="admonition question">
<p class="admonition-title">django.db.utils.OperationalError: (2006, "Can't connect to MySQL server on '127.0.0.1' (115)")</p>
<p>检查 config.yml 的 mysql 设置</p>
</div>
<div class="admonition info">
<p class="admonition-title">config.yml 格式说明</p>
<div class="highlight"><pre><span></span><code><span class="nt">常见的错误就是字段为空和</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">后面少一个空格, 参考下面, 请勿照抄</span>  
<span class="nt">SECRET_KEY</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">5RLbBjm8AkMSvnft...</span>  <span class="c1"># 不要忽略: 后面的空格, 不支持纯数字  </span>
<span class="nt">BOOTSTRAP_TOKEN</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">ihR4WG4gRShCnpQL...</span>  <span class="c1"># 不要忽略: 后面的空格, 不支持纯数字  </span>
<span class="nt">DB_PASSWORD</span><span class="p">:</span> <span class="s">&#39;123456&#39;</span>  <span class="c1"># 密码纯数字用单引号括起来  </span>
<span class="nt">DB_PASSWORD</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">cPzxaiUAtA5IkdT2...</span>  <span class="c1"># 非纯数字可以不用单引号  </span>
<span class="nt">REDIS_PASSWORD</span><span class="p">:</span> <span class="s">&#39;888888&#39;</span>  <span class="c1"># 密码纯数字用单引号括起来  </span>
<span class="nt">REDIS_PASSWORD</span><span class="p">:</span> <span class="l l-Scalar l-Scalar-Plain">Ma5bzA3gVK5oY17l...</span>  <span class="c1"># 非纯数字可以不用单引号  </span>
</code></pre></div>

</div>
<h3 id="2-web">2. Web 登录页面异常<a class="headerlink" href="#2-web" title="Permanent link">&para;</a></h3>
<div class="admonition question">
<p class="admonition-title">页面显示不正常</p>
<p>不要通过 8080 端口访问 Web 页面<br />
不支持 IE 浏览器<br />
其他异常, 请查看 jumpserver/logs/ 和 /var/log/nginx 下面的 log, 根据相应的错误排查问题</p>
</div>
<h3 id="3-web">3. Web 登录失败<a class="headerlink" href="#3-web" title="Permanent link">&para;</a></h3>
<div class="admonition question">
<p class="admonition-title">忘记密码</p>
<p>如果忘了密码, 可以点击找回密码通过邮件找回<br />
如果无法通过邮件找回, 可以通过控制台重置
<div class="highlight"><pre><span></span><code><span class="nb">source</span> /opt/py3/bin/activate
<span class="nb">cd</span> /opt/jumpserver/apps
python manage.py shell
</code></pre></div>
<div class="highlight"><pre><span></span><code><span class="kn">from</span> <span class="nn">users.models</span> <span class="kn">import</span> <span class="n">User</span>
<span class="n">u</span> <span class="o">=</span> <span class="n">User</span><span class="o">.</span><span class="n">objects</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="n">username</span><span class="o">=</span><span class="s1">&#39;admin&#39;</span><span class="p">)</span>
<span class="n">u</span><span class="o">.</span><span class="n">reset_password</span><span class="p">(</span><span class="s1">&#39;password&#39;</span><span class="p">)</span>
<span class="n">u</span><span class="o">.</span><span class="n">save</span><span class="p">()</span>
</code></pre></div></p>
<div class="admonition tip">
<p class="admonition-title">admin 为你要修改的账户名称, password 为你要修改的密码</p>
</div>
</div>
<div class="admonition question">
<p class="admonition-title">登录频繁账号被锁定</p>
<p>找管理员重置, 管理员可以在对应用户的个人页面重置<br />
或者通过下面的 shell 解决
<div class="highlight"><pre><span></span><code>source /opt/py3/bin/activate
cd /opt/jumpserver/apps
python manage.py shell
</code></pre></div>
<div class="highlight"><pre><span></span><code><span class="kn">from</span> <span class="nn">django.core.cache</span> <span class="kn">import</span> <span class="n">cache</span>
<span class="n">cache</span><span class="o">.</span><span class="n">delete_pattern</span><span class="p">(</span><span class="s1">&#39;_LOGIN_BLOCK_*&#39;</span><span class="p">)</span>
<span class="n">cache</span><span class="o">.</span><span class="n">delete_pattern</span><span class="p">(</span><span class="s1">&#39;_LOGIN_LIMIT_*&#39;</span><span class="p">)</span>
</code></pre></div></p>
</div>
<div class="admonition question">
<p class="admonition-title">如果是设置了 LDAP 后无法登录, 请登录数据库禁用 ldap 登录, 然后重新设置 LDAP</p>
<p><div class="highlight"><pre><span></span><code>mysql -uroot -p
</code></pre></div>
<div class="highlight"><pre><span></span><code><span class="k">use</span> <span class="n">jumpserver</span><span class="p">;</span>
<span class="k">update</span> <span class="n">settings_setting</span> <span class="kt">set</span> <span class="n">value</span><span class="o">=</span><span class="s1">&#39;false&#39;</span> <span class="k">where</span> <span class="n">name</span><span class="o">=</span><span class="s1">&#39;AUTH_LDAP&#39;</span><span class="p">;</span>
</code></pre></div></p>
</div>
<div class="admonition question">
<p class="admonition-title">如果是设置 其他身份认证 后无法登录, 注释掉 jumpserver/config.yml 里面的身份认证设置重启即可</p>
</div>
<h3 id="4">4. 管理用户 和 系统用户<a class="headerlink" href="#4" title="Permanent link">&para;</a></h3>
<div class="admonition question">
<p class="admonition-title">资产测试可连接性、更新硬件信息、推送提示 ...........</p>
<div class="highlight"><pre><span></span><code>source /opt/py3/bin/activate
./jms stop
ps aux | grep py3 | awk &#39;{print $2}&#39; | xargs kill -9
rm -rf tmp/*.pid
./jms start -d
</code></pre></div>

</div>
<div class="admonition question">
<p class="admonition-title">资产测试可连接性、更新硬件信息 报 Permission denied 或者 Authentication failure</p>
<p>一般都是管理用户账户密码不正确</p>
</div>
<div class="admonition question">
<p class="admonition-title">资产测试可连接性、更新硬件信息 报 /usr/bin/python: not found</p>
<p>在一般是资产 python 未安装或者 python 异常, 一般出现在 ubuntu 资产上</p>
</div>
<div class="admonition question">
<p class="admonition-title">系统用户测试资产可连接性错误</p>
<p>确定系统用户是否正确, 如果系统用户使用了自动推送, 确保管理用户正确<br />
系统用户设置为 root 的情况下, 请关闭自动推送, 并输入正确的 root 密码</p>
</div>
<div class="admonition question">
<p class="admonition-title">提示 timeout</p>
<p><div class="highlight"><pre><span></span><code>vi /etc/ssh/sshd_config
</code></pre></div>
<div class="highlight"><pre><span></span><code>UseDNS no
</code></pre></div>
<div class="highlight"><pre><span></span><code>systemctl restart docker
docker restart jms_koko
</code></pre></div></p>
</div>
<div class="admonition question">
<p class="admonition-title">Connect websocket server error</p>
<p>kill 掉进程再重启 core<br />
如果仍然一样, 表示 nginx 也有错误, 根据安装文档进行修改后重启 nginx 即可</p>
</div>
<h3 id="5-core">5. 更新 Core 报错<a class="headerlink" href="#5-core" title="Permanent link">&para;</a></h3>
<div class="admonition question">
<p class="admonition-title">启动报错 Cannot add foreign key constraint</p>
<p>这是因为旧版本的数据库字符集和新版本数据库字符集不一样导致，备份好数据库，然后进行如下操作
<div class="highlight"><pre><span></span><code><span class="k">alter</span> <span class="k">database</span> <span class="n">jumpserver</span> <span class="k">character</span> <span class="kt">set</span> <span class="n">utf8</span> <span class="k">collate</span> <span class="n">utf8_bin</span><span class="p">;</span>
<span class="k">use</span> <span class="n">jumpserver</span><span class="p">;</span>
<span class="kt">SET</span> <span class="n">FOREIGN_KEY_CHECKS</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span>
<span class="k">alter</span> <span class="k">table</span> <span class="n">applications_remoteapp</span> <span class="k">convert</span> <span class="k">to</span> <span class="k">character</span> <span class="kt">set</span> <span class="n">utf8</span> <span class="k">collate</span> <span class="n">utf8_bin</span><span class="p">;</span>
<span class="kt">SET</span> <span class="n">FOREIGN_KEY_CHECKS</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
</code></pre></div>
把所有表都修改一下，重启 core 即可(applications_remoteapp 就是表名，把 jumpserver 数据库的所有表都改一下，注意备份)
<div class="highlight"><pre><span></span><code><span class="c1"># 表很多，可以用 shell 快速生成 sql 语句</span>
<span class="nv">sql</span><span class="o">=</span><span class="sb">`</span>mysql -uroot -e <span class="s2">&quot;use jumpserver; show tables;&quot;</span> <span class="p">|</span> grep -v <span class="s2">&quot;Tables_in&quot;</span> <span class="p">|</span> awk <span class="s1">&#39;{print $1}&#39;</span><span class="sb">`</span>
<span class="k">for</span> i in <span class="nv">$sql</span><span class="p">;</span> <span class="k">do</span> <span class="nb">echo</span> <span class="s2">&quot;alter table </span><span class="nv">$i</span><span class="s2"> convert to character set utf8 collate utf8_bin;&quot;</span><span class="p">;</span> <span class="k">done</span>
<span class="c1"># 然后登陆 mysql 服务参考上面的教程处理即可</span>
mysql -uroot
</code></pre></div>
<div class="highlight"><pre><span></span><code><span class="k">alter</span> <span class="k">database</span> <span class="n">jumpserver</span> <span class="k">character</span> <span class="kt">set</span> <span class="n">utf8</span> <span class="k">collate</span> <span class="n">utf8_bin</span><span class="p">;</span>
<span class="k">use</span> <span class="n">jumpserver</span><span class="p">;</span>
<span class="kt">SET</span> <span class="n">FOREIGN_KEY_CHECKS</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span>
<span class="k">alter</span> <span class="k">table</span> <span class="n">applications_databaseapp</span> <span class="k">convert</span> <span class="k">to</span> <span class="k">character</span> <span class="kt">set</span> <span class="n">utf8</span> <span class="k">collate</span> <span class="n">utf8_bin</span><span class="p">;</span>
<span class="k">alter</span> <span class="k">table</span> <span class="n">applications_remoteapp</span> <span class="k">convert</span> <span class="k">to</span> <span class="k">character</span> <span class="kt">set</span> <span class="n">utf8</span> <span class="k">collate</span> <span class="n">utf8_bin</span><span class="p">;</span>
<span class="k">alter</span> <span class="k">table</span> <span class="n">assets_adminuser</span> <span class="k">convert</span> <span class="k">to</span> <span class="k">character</span> <span class="kt">set</span> <span class="n">utf8</span> <span class="k">collate</span> <span class="n">utf8_bin</span><span class="p">;</span>
<span class="k">alter</span> <span class="k">table</span> <span class="n">assets_asset</span> <span class="k">convert</span> <span class="k">to</span> <span class="k">character</span> <span class="kt">set</span> <span class="n">utf8</span> <span class="k">collate</span> <span class="n">utf8_bin</span><span class="p">;</span>
<span class="p">...</span> <span class="err">把刚才查询到</span> <span class="k">sql</span> <span class="err">语句执行完</span>
<span class="kt">SET</span> <span class="n">FOREIGN_KEY_CHECKS</span> <span class="o">=</span> <span class="mi">1</span><span class="p">;</span>
</code></pre></div></p>
</div>
                
              
              
                


              
            </article>
          </div>
        </div>
      </main>
      
        
<footer class="md-footer">
  
    <div class="md-footer-nav">
      <nav class="md-footer-nav__inner md-grid" aria-label="Footer">
        
          <a href="../other/" title="其他问题" class="md-footer-nav__link md-footer-nav__link--prev" rel="prev">
            <div class="md-footer-nav__button md-icon">
              <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
            </div>
            <div class="md-footer-nav__title">
              <div class="md-ellipsis">
                <span class="md-footer-nav__direction">
                  上一页
                </span>
                其他问题
              </div>
            </div>
          </a>
        
        
          <a href="../luna/" title="Luna 常见问题" class="md-footer-nav__link md-footer-nav__link--next" rel="next">
            <div class="md-footer-nav__title">
              <div class="md-ellipsis">
                <span class="md-footer-nav__direction">
                  下一页
                </span>
                Luna 常见问题
              </div>
            </div>
            <div class="md-footer-nav__button md-icon">
              <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
            </div>
          </a>
        
      </nav>
    </div>
  
  <div class="md-footer-meta md-typeset">
    <div class="md-footer-meta__inner md-grid">
      <div class="md-footer-copyright">
        
          <div class="md-footer-copyright__highlight">
            Copyright &copy; 2014-2020 <a href="https://zuoguocai.gitee.com">国才大叔笔记</a>, All Rights Reserved. <a href="https://zuoguocai.github.io" target="_blank">My Docs</a>
          </div>
        
        Made with
        <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
          Material for MkDocs
        </a>
      </div>
      
    </div>
  </div>
</footer>
      
    </div>
    
      <script src="../../assets/javascripts/vendor.3636a4ec.min.js"></script>
      <script src="../../assets/javascripts/bundle.e9fe3281.min.js"></script><script id="__lang" type="application/json">{"clipboard.copy": "\u590d\u5236", "clipboard.copied": "\u5df2\u590d\u5236", "search.config.lang": "ja", "search.config.pipeline": "trimmer, stemmer", "search.config.separator": "[\\uff0c\\u3002]+", "search.result.placeholder": "\u952e\u5165\u4ee5\u5f00\u59cb\u641c\u7d22", "search.result.none": "\u6ca1\u6709\u627e\u5230\u7b26\u5408\u6761\u4ef6\u7684\u7ed3\u679c", "search.result.one": "\u627e\u5230 1 \u4e2a\u7b26\u5408\u6761\u4ef6\u7684\u7ed3\u679c", "search.result.other": "# \u4e2a\u7b26\u5408\u6761\u4ef6\u7684\u7ed3\u679c"}</script>
      
      <script>
        app = initialize({
          base: "../..",
          features: [],
          search: Object.assign({
            worker: "../../assets/javascripts/worker/search.5eca75d3.min.js"
          }, typeof search !== "undefined" && search)
        })
      </script>
      
    
  </body>
</html>